package com.haskie.product.service.Impl;

import com.haskie.api.dao.ProductMapper;
import com.haskie.api.entity.Product;
import com.haskie.product.service.IProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("productService")
public class ProductServiceImpl implements IProductService {

    @Autowired
    ProductMapper productMapper;

    @Override
    public List<Product> getProducts() {
        return productMapper.selectList(null);
    }
}
